<?php
class Pageley_Serializer_Converter_File implements Pageley_Serializer_Converter {
    
    public function convertIntoFormat($value) {
        return $value !== null ? $value->getLocation() : null;
    }
    
    public function convertFromFormat($value) {
        return $value !== null ? new Pageley_Domain_BasicFile($value) : null;
    }
}